package org.jeecg.modules.job.sub.service;

import org.jeecg.modules.job.sub.entity.SubAnswer;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;

/**
 * @Description: 题目答案
 * @Author: jeecg-boot
 * @Date:   2022-10-04
 * @Version: V1.0
 */
public interface ISubAnswerService extends IService<SubAnswer> {

	/**
	 * 通过主表id查询子表数据
	 *
	 * @param mainId 主表id
	 * @return List<SubAnswer>
	 */
	public List<SubAnswer> selectByMainId(String mainId);

	/**
	 * 答题
	 * @param answer
	 * @return
	 */
	boolean answerQuestion(SubAnswer answer);
}
